package cn.edu.java.object;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@NoArgsConstructor
public class Student extends Worker {
    public Student(String name,int age, String work){
        super(name, age, work);
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", work='" + work + '\'' +
                '}';
    }

    public static void main(String[] args) {
        Student student = new Student();
        student.say();
    }
}
